package com.lanou.pianke.search.web.controller;

import com.lanou.pianke.search.entity.Areply;
import com.lanou.pianke.search.service.AreplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/es/")
@RestController
public class AreplyController {

    @Autowired
    private AreplyService areplyService;

     // 根据文章回复内容查评论
    @GetMapping("findByAreplyContent")
    public List<Areply> findByAreplyContent(String searchContent){
        return areplyService.searchByAreplyContent(searchContent);
    }

}
